package com.jcl.recruit.attach.logic;

import com.jcl.recruit.attach.mapper.UploadFileMapper;
import com.jcl.recruit.attach.model.UploadFileInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @ClassName UploadFileLogic
 * @Description TODO
 * @Author yyliu
 * @Date 2018/10/24 13:41
 * @Version 1.0
 **/
@Component
public class UploadFileLogic implements UploadFileMapper {

    @Autowired
    private UploadFileMapper uploadFileMapper;

    @Override
    public List<UploadFileInfo> findList(String corpCode, Integer ownerId, String type) {
        return uploadFileMapper.findList(corpCode, ownerId, type);
    }

    @Override
    public UploadFileInfo findOne( String id) {
        return uploadFileMapper.findOne(id);
    }

    @Override
    public int add(UploadFileInfo uploadFileInfo) {
        return uploadFileMapper.add(uploadFileInfo);
    }

    @Override
    public int update(UploadFileInfo uploadFileInfo) {
        return uploadFileMapper.update(uploadFileInfo);
    }
}
